package com.github.server.interfaces;

import com.github.server.core.SimpleMapping;

import java.io.IOException;

/**
 * @ClassName HttpApplication
 * @description:
 * @author: biao532
 * @create: 2024-02-03 16:15
 * @Version 1.0
 **/
public interface HttpApplication {
    void start() throws IOException;

    void registerHandler(String path, HttpHandler handler);

    void registerHandler(ResourceMapping mapping, int index);
    void registerHandler(ResourceMapping mapping);

    void stop();
}
